﻿using System.Diagnostics;
using System.Web.Services;
using System.ComponentModel;
using System.Web.Services.Protocols;
using System;
using System.Xml.Serialization;
using PackTracker.Mobile.Negocio;

namespace PackTracker.Mobile.PackTrackerWS {
    /// <remarks/>
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="MonitoramentoSoap", Namespace="http://tempuri.org/")]
    public partial class Monitoramento : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        /// <remarks/>
        public Monitoramento() {
            Configuration configuration = new Configuration();

            this.Url = configuration.GetConfig("WebServicesURL");
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/MonitoramentoGravar", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int MonitoramentoGravar(string idvehicle, string location, string items) {
            object[] results = this.Invoke("MonitoramentoGravar", new object[] {
                        idvehicle,
                        location,
                        items});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginMonitoramentoGravar(string idvehicle, string location, string items, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("MonitoramentoGravar", new object[] {
                        idvehicle,
                        location,
                        items}, callback, asyncState);
        }
        
        /// <remarks/>
        public int EndMonitoramentoGravar(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((int)(results[0]));
        }
    }
}
